package com.lxw.nonghe.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
/**
 * <p>
 * 参合农民档案表
 * </p>
 *
 * @author lxw
 * @since 2025-04-17
 */
@Data
@Accessors(chain = true)
@TableName("t_farmer")
@ApiModel(value = "Farmer对象", description = "参合农民档案表")
public class Farmer implements Serializable {
    private static final long serialVersionUID = 1L;

    @ApiModelProperty("农民唯一ID")
    @TableId(type = IdType.AUTO)
    private Integer farmerId;

    @ApiModelProperty("所属家庭编号")
    private Integer familyId;

    @ApiModelProperty("农民姓名")
    private String name;

    @ApiModelProperty("身份证号码")
    private String idCard;

    @ApiModelProperty("性别")
    private String gender;

    @ApiModelProperty("出生日期")
    private Date birthDate;

    @ApiModelProperty("民族")
    private String ethnicity;

    @ApiModelProperty("健康状况描述")
    private String healthStatus;

    @ApiModelProperty("是否农村户口")
    private String isRural;

    @ApiModelProperty("联系电话")
    private String contactNumber;

    @ApiModelProperty("常住住址")
    private String permanentAddress;

    @ApiModelProperty("是否参合(1-是,0-否)")
    private Integer isCooperative; // 对应表中 is_cooperative
    @ApiModelProperty("参合状态(1-正常,2-停保,3-退保)")
    private Integer coopStatus;    // 对应表中 coop_status
    @ApiModelProperty("首次参合日期")
    private Date firstJoinDate;    // 对应表中 first_join_date
    @ApiModelProperty("农合证号(仅参合农民有值)")
    private String cooperativeNumber; // 对应表中 cooperative_number
    @ApiModelProperty("行政编码（行政区域统计使用）")
    private String parentCode;
}
